package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbProxyDetailsDao;
import com.gtw.modules.entity.TbProxyDetails;
import com.gtw.modules.sys.service.TbProxyDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/20.
 */
@Service
public class TbProxyDetailsServiceImpl implements TbProxyDetailsService {

    @Autowired
    private TbProxyDetailsDao tbProxyDetailsDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbProxyDetailsDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbProxyDetails record) {
        return tbProxyDetailsDao.insert(record);
    }

    @Override
    public int insertSelective(TbProxyDetails record) {
        return tbProxyDetailsDao.insertSelective(record);
    }

    @Override
    public TbProxyDetails selectByPrimaryKey(Integer id) {
        return tbProxyDetailsDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbProxyDetails record) {
        return tbProxyDetailsDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbProxyDetails record) {
        return tbProxyDetailsDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbProxyDetails> queryAll() {
        return tbProxyDetailsDao.queryAll();
    }

    @Override
    public List<TbProxyDetails> queryBybenefit(Integer benefitUserid) {
        return tbProxyDetailsDao.queryBybenefit(benefitUserid);
    }

    @Override
    public List<TbProxyDetails> queryBytrigger(Map<String,Object> params) {
        return tbProxyDetailsDao.queryBytrigger(params);
    }

    @Override
    public List<TbProxyDetails> queryByThisMonth(Map<String, Object> params) {
        return tbProxyDetailsDao.queryByThisMonth(params);
    }

    @Override
    public List<TbProxyDetails> queryByThisAll(Map<String, Object> params) {
        return tbProxyDetailsDao.queryByThisAll(params);
    }
}
